import React, { Component } from 'react';
import PropTypes from 'prop-types'

export default class Welcome extends Component {
  componentDidMount() {
    console.log('componentDidMount')
  }
  render() {
    return (
      <div className='welcome'>{this.props.msg}</div>
    )
  }
}
Welcome.propTypes = {
  // msg: PropTypes.string
  msg: PropTypes.string.isRequired
}